package com.daxt.model.service.archives.vo;

import java.io.Serializable;

import javax.validation.constraints.NotNull;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "档案门类", description = "档案门类")
//@TableName("\"daxt\".\"ARCHIVES_TYPE\"")
@TableName("archives_type")
public class ArchivesType implements Serializable{
	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	@ApiModelProperty(value = "全宗号", name = "fondsNum")
	private String fondsNum;
	@NotNull(message = "全宗ID不能为空")
	@ApiModelProperty(value = "全宗ID", name = "fondsId")
	private String fondsId;
	@NotNull(message = "门类名不能为空")
	@ApiModelProperty(value = "门类名", name = "typeName")
	private String typeName;
	@NotNull(message = "门类号不能为空")
	@ApiModelProperty(value = "类号", name = "typeNum")
	private String typeNum;
	@ApiModelProperty(value = "remark", name="remark")
	private String remark;
	@NotNull(message = "模式不能为空")
	@ApiModelProperty(value = "model 0件 1卷", name="model")
	private String model;
	@ApiModelProperty(value = "sort", name="sort")
	private Integer sort;
	@ApiModelProperty(value = "档号生成规则", name="genArchivalNum")
	private String genArchivalNum;
	@ApiModelProperty(value = "生成拼接符", name="genType")
	private String genType;
	@ApiModelProperty(value = "类目号生成规则", name="genClassNum")
	private String genClassNum;
	@ApiModelProperty(value = "生成拼接符", name="genClassType")
	private String genClassType;
	@ApiModelProperty(value = "1文件  2图片 3视频", name="fileType")
	private String fileType;
	@ApiModelProperty(value = "件号生成规则", name="genItemNum")
	private String genItemNum;
	@ApiModelProperty(value = "卷号生成规则", name="genDossierNum")
	private String genDossierNum;
	@ApiModelProperty(value = "是否开启自动生成档号  0不开启  1开启", name="autoArchivalNum")
	private String autoArchivalNum;
	@ApiModelProperty(value = "是否开启自动生成卷件号  0不开启  1开启", name="autoDossierItemNum")
	private String autoDossierItemNum;
	@ApiModelProperty(value = "是否开启生成持久化文件  0不开启  1开启", name="autoDurableFile")
	private String autoDurableFile;


	/**
	 * add by dm @date:2021-05-14
	 * 模式旧版
	 * 用于切换模式时更换原来保存的档号生成规则和类目号生成规则
	 */
	@ApiModelProperty(value = "模式旧版", name = "modelOld")
	private String modelOld;

	/**
	 * add by dm @date:2021-05-14
	 * 档号生成规则旧版
	 * 用于切换模式时更换原来保存的档号生成规则和类目号生成规则
	 */
	@ApiModelProperty(value = "档号生成规则旧版", name = "genArchivalNumOld")
	private String genArchivalNumOld;

	/**
	 * add by dm @date:2021-05-14
	 * 生成拼接符旧版
	 * 用于切换模式时更换原来保存的档号生成规则和类目号生成规则
	 */
	@ApiModelProperty(value = "生成拼接符旧版", name = "genTypeOld")
	private String genTypeOld;

	/**
	 * add by dm @date:2021-05-14
	 * 类目号生成规则旧版
	 * 用于切换模式时更换原来保存的档号生成规则和类目号生成规则
	 */
	@ApiModelProperty(value = "类目号生成规则旧版", name = "genClassNumOld")
	private String genClassNumOld;

	/**
	 * add by dm @date:2021-05-14
	 * 生成拼接符旧版
	 * 用于切换模式时更换原来保存的档号生成规则和类目号生成规则
	 */
	@ApiModelProperty(value = "生成拼接符旧版", name = "genClassTypeOld")
	private String genClassTypeOld;

	@ApiModelProperty(value = "组卷匹配规则", name = "constituteRule")
	private String constituteRule;

	@ApiModelProperty(value = "组卷匹配拼接符", name = "constituteRuleSymbol")
	private String constituteRuleSymbol;


}
